<?php
/* @var $this SiteController */
/* @var $model OrderForm */
/* @var $form TbActiveForm */

$this->pageTitle=Yii::app()->name .' - Pesanan Anda';
$this->breadcrumbs=array(
	'Pesanan Anda',
);
?>
<h1>Pesanan Anda</h1>
<?php if (Yii::app()->user->hasFlash('order')): ?>
	<?php $this->widget('bootstrap.widgets.TbAlert', array(
		'alerts'=>array('order'),
	)); ?>
<?php else: ?>
<p>Jika Anda memiliki pertanyaan bisnis atau pertanyaan lain, silakan isi form berikut untuk menghubungi kami. Terima kasih.</p>
<div class="form">
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'verticalForm',
	'type'=>'horizontal',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		//'class'=>'well',
	),
)); ?>

<p class="note">Kolom dengan tanda <span class="required">*</span>  harus diisi.</p>

<?php echo $form->errorSummary($model); ?>
<?php echo $form->textFieldRow($model, 'name', array('class'=>'span5', 'maxLenght'=>60)); ?>
<?php // echo $form->textFieldRow($model, 'subject', array('class'=>'span5', 'maxLenght'=>60,'value'=>'Memesan Pembantu', 'disabled'=>true)); ?>
<?php echo $form->dropDownListRow($model, 'country', array('Pilih Negara...', 'Indonesia'=>'Indonesia', 'Malaysia'=>'Malaysia', 'Singapura'=>'Singapura', 'Thailand'=>'Thailand', 'Philippines'=>'Philippines')); ?>
<?php echo $form->textFieldRow($model, 'company', array('class'=>'span5', 'maxLenght'=>30)); ?>
<?php echo $form->textAreaRow($model, 'address', array('class'=>'span5', 'rows'=>4, 'class'=>'span5')); ?>
<?php echo $form->textFieldRow($model, 'contactNumber', array('class'=>'span5', 'maxLenght'=>15)); ?>
<?php echo $form->textFieldRow($model, 'email', array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model, 'hearUsFrom', array('class'=>'span5', 'maxLenght'=>120)); ?>
<?php echo $form->textFieldRow($model, 'profession', array('class'=>'span5', 'maxLenght'=>20)); ?>
<?php echo $form->textAreaRow($model, 'jobCriteria', array('rows'=>6, 'class'=>'span8')); ?>
<?php if(CCaptcha::checkRequirements()): ?>
	<?php echo $form->captchaRow($model, 'verifyCode', array(
		'hint'=>'Please enter the letters as they are shown in the image above.<br/>Letters are not case-sensitive.',
	)); ?>
<?php endif; ?>
<div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
		'buttonType'=>'submit',
		'type'=>'primary',
		'label'=>'Submit',
	)); ?>
</div>
<?php $this->endWidget(); ?>

</div>	
<?php endif; ?>
